<?php
class Index_Data_Addneworder implements Index_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct(){
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation();
    }
    
    public function main(array $variables = null) {
        
        $variables['query'] = "INSERT INTO orders(url, version, email, name, company_name, vat_number, other_info, vat_payer, company_location, status_name) VALUES('".$variables['post']['url']."', '".$variables['post']['version']."', '".$variables['post']['email']."', '".$variables['post']['name']."', '".$variables['post']['company_name']."', '".$variables['post']['vat_number']."', '".$variables['post']['other_info']."', '".$variables['post']['vat_payer']."', '".$variables['post']['company_location']."', 'Aktywny');";
        //echo $variables['query'];
        //die();
        $this->core_controller_dataoperation->main($variables);
    }

}
